From: Rui Matos Date: Sat, 2 Mar 2013 15:51:00 +0000 (+0100) Subject: status/keyboard: Don't show the switcher with less than 2 items X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4579 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7e1b4692e29f728af94a7ea9b4962255d45914ed;p=gnome-shell.git status/keyboard: Don't show the switcher with less than 2 items https://bugzilla.gnome.org/show_bug.cgi?id=695000 --- diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js index 3a9fc1c05..eb668fa19 100644 --- a/js/ui/status/keyboard.js +++ b/js/ui/status/keyboard.js @@ -398,6 +398,9 @@ const InputSourceIndicator = new Lang.Class({ }, _switchInputSource: function(display, screen, window, binding) { + if (this._mruSources.length < 2) + return; + let popup = new InputSourcePopup(this._mruSources, this._keybindingAction, this._keybindingActionBackward); let modifiers = binding.get_modifiers(); let backwards = modifiers & Meta.VirtualModifier.SHIFT_MASK;